package com.yztc.orangeentertainment.ui.main.subscribefragment.subconfragment;

import android.content.Context;

import com.yztc.orangeentertainment.adapter.SubConAdapter;
import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.subscribebean.LabelBean;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by My on 2016/10/6.
 */
public class ConContract {
    interface View extends IView{
        //发送到adapter
        public void onLoadConSuccess(List<LabelBean> labelBeanList);
        //加载数据失败
        public void onLoadConFail(String msg);
    }
    public interface Modle extends IModle {
        //得到list
        public void getConAll(int index, String type, Map<String, String> params, OnLoadMiddleListener loadMiddleListener, Context context);
        //获得数据库
        public void getConFromDb(Subscriber<List<LabelBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        //从网络获取数据
        public void getConFromNet(Map<String, String> params, Context context);
        public void  getConFromDb();
    }
}
